package com.bestcem.xm.label.constant;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

/**
 * @author ming.xue <ming.xue@idiaoyan.com>
 * @desc 列名常量
 * @date 2021-05-19
 */
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class ColumnConstant {
    private static class Base {
        public static final String ID = "_id";
        public static final String UPDATED_TIME = "updated_dt";
        public static final String CREATE_TIME = "created_dt";
    }

    /**
     * 标签组
     */
    public static class LabelGroup extends Base {
        public static final String ORG_ID = "orgId";
        public static final String ATTRIBUTE = "attribute";
        public static final String NAME = "name";
        public static final String SERIAL = "serial";
    }

    /**
     * 标签
     */
    public static class Label extends Base {
        public static final String ORG_ID = "orgId";
        public static final String NAME = "name";
        public static final String MANUAL = "manual";
        public static final String AUTO = "auto";
        public static final String LABEL_GROUP_ID = "tag_group_id";
    }

    /**
     * 标签值
     */
    public static class LabelValue extends Base {
        public static final String ORG_ID = "orgId";
        public static final String VALUE = "value";
        public static final String MANUAL = "manual";
        public static final String AUTO = "auto";
        public static final String SERIAL = "serial";
        public static final String LABEL_ID = "tag_id";
        public static final String LABEL_NAME = "tag_name";
        public static final String LABEL_GROUP_ID = "tag_group_id";
        public static final String LABEL_GROUP_NAME = "tag_group_name";
        public static final String CONDITION = "condition";
        public static final String ATTRIBUTE = "attribute";
    }
}
